<?php
namespace app\api\controller\supplier;

use app\api\base\RestfulBase;
use app\modules\supplier\call\Auth as SupplierAuthCall;

/**
 * Class Login User用户登陆接口控制器
 * @package app\api\controller\user
 */
class LoginOut extends RestfulBase
{
    
    protected $_open_auth = ['user' => false, 'open_api' => false];

    /**
     * 用户退出接口
     * @return \think\Response
     */
    public function index(){
        
        if(true===SupplierAuthCall::logout()){
            return $this->apiSuccess([],"注销成功！");
        }else{
            return $this->apiError(SupplierAuthCall::getError(";"));
        }
    }
}

